VObject::FindItem

Section: ET++ method description (n)
Updated: automatically Mon Apr 8 20:17:57 1991
Index Return to Main Contents
 

NAME

VObject::FindItem - instance method  

TEMPLATE

item = VObject * FindItem(Point at)  

SPECIFIERS

public  

DESCRIPTION

Starting at this the method FindItem searches the VObject tree for an item which contains the point at. The test is based on the method ContainsPoint. FindItem uses the method Detect to walk down the tree. This method is called, for example, by the method InspectCommand::TrackMouse.  

ARGUMENTS

Point at

an item which contains at
is searched
 

RETURN ARGUMENT

VObject * item

the found item or NULL
 

CATEGORIES

detect, client interface

 

FILES

implementation:
VObject.C

 

NAME

VObject::FindItem - instance method  

TEMPLATE

item = VObject * FindItem(int id)  

SPECIFIERS

public  

DESCRIPTION

Starting at this the method FindItem searches the VObject tree for an item with id. If id is const cIdNone then NULL is returned without searching. FindItem uses the method Detect to walk down the tree.
This method is used, for example, by the class Menu to find menu items with certain ids in order to enable/disable these items or to change their text. To do this the Menu also overrides the method Detect. See method Menu::Detect.  

ARGUMENTS

int id

an item with id
is searched
 

RETURN ARGUMENT

VObject * item

the found item or NULL
 

CATEGORIES

detect, client interface

 

FILES

implementation:
VObject.C

 

NAME

VObject::FindItem - instance method  

TEMPLATE

itemFound = VObject * FindItem(VObject * item)  

SPECIFIERS

public  

DESCRIPTION

Starting at this the method FindItem searches the VObject tree for an item which is equal to item. In contrast to the method FindItemPtr the comparison is based on the method IsEqual (=equality test). FindItem uses the method Detect to walk down the tree. This method is called, for example, by the method TreeNode::FindExpandedItem.  

ARGUMENTS

VObject * item

an item which is equal to item
is searched
 

RETURN ARGUMENT

VObject * itemFound

the found item or NULL
 

CATEGORIES

detect, client interface

 

FILES

implementation:
VObject.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FILES
NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FILES
NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:22 GMT, March 30, 2022